<?php $this->load->view('common/pagehead')?>
<?php $this->load->view('common/header')?>
<div id="content" class="pgwrapper1" style="background:#fff">
<div>
<div class="spec_15"></div>
<?php $this->load->view('common/browseByAlphabet');?>
<div class="spec_15"></div>
<div class="left w655 mr15">
<div class="p10 bdr_logo">
<div class="left">
<a href="/" class="txt_pnkLn">Home</a> <span class="txt_grysn">&raquo;</span>
<span class="txt_grysn">All Occasions</span>
</div>
<div class="right">
<div class="left">
<a href="https://twitter.com/couponskart25" class="twitter-follow-button" data-align="left" data-show-count="true" data-lang="en">Follow</a>
</div>
</div>
<div class="clr"></div>
</div>
<div class="spec_10"></div>
<div class="spec_15"></div>
<div class="bx_shw w100">
<div class="bg1 p10_15">
<div class="left" itemscope itemtype="http://schema.org/Product">
<meta itemprop="name" content="Top Coupons">
<h1>
Popular <span class="txt_pnk">Occasions</span>
</h1>
</div>
<div class="left" style="margin-left:10px">
<div id="fb-root"></div>
<div class="fb-like mr10" data-href="http://www.facebook.com/couponskart25" data-send="false" data-layout="button_count" data-width="100" data-show-faces="false" style="display:inline"></div>
</div>
</div>
<div class="p15 bdr_b txt_categ">Gift your special ones on every
occassion . Celebrate life - Shop for online gifts .Get special
offers , discount coupons and coupon codes for Diwali , Holi ,
Dusshera , Raksha Bandhan , Chirstmas and Other important festivals
in India .Browse for special schemes and sales offers for each
festival .</div>
<div class="spec_10"></div>
<ul style="list-style:disk">
<?php foreach($allOccasion as $temp){?>
<li class="p7_15" style="width:125px;float:left"><a href="/<?php echo $temp['occasion_url']; ?>-offers-and-deals" style="color:#406599;font-size:15px"><?php echo $temp['occasion_name']; ?>
</a>
</li>
<?php } ?>
</ul>
<div class="spec_2"></div>
</div>
<div class="spec_15"></div>
<div class="bx_shw w100">
<div class="bg1 p10_15">
<div class="left" itemscope itemtype="http://schema.org/Product">
<meta itemprop="name" content="Top Coupons">
<h1>
Top 5 <span class="txt_pnk">Coupons</span>
</h1>
</div>
</div>
<?php if(!empty($allOccasionRelatedArray)){ 
					foreach($allOccasionRelatedArray as $temp){
                	if($temp['coupon_type']!='Offer'){?>
<div class="p15 bdr_b">
<div class="left w110">
<a href="/<?php echo $temp['store_url']; ?>-coupons"><img src="<?php echo $temp['store_image']; ?>" alt="" class="bdr_logo logo_shadow" /> </a><br /> <br />
<?php if($temp['coupon_bank']!=0){ ?>
<span class="plus">+</span><br /> <img src="/public/images/logo_<?php echo $temp['coupon_bank']; ?>.png" alt="" hspace="16" vspace="11" />
<?php }else if($temp['coupon_type']=='FeaturedCpn'){ ?>
<br /> <img src="/public/images/verified.png" alt="Featured Coupon" hspace="0" />
<?php } ?>
</div>
<div class="ml120">
<a href="/top-coupons/<?php echo $temp['store_url'].'/'.$temp['coupon_url'];?>" style="color:#434343"><span class="txt_cpn"><?php echo $temp['coupon_name']; ?>
</span> </a>
<div class="spec_10"></div>
<div class="bg_code w441" style="position:relative">
<div class="left">
<input type="button" value="Click to Reveal" onclick="showCouponCode('getCode<?php echo $temp['coupon_id']; ?>','<?php echo $temp['coupon_code']; ?>','<?php echo $temp['store_id']; ?>')" class="get_code" />
</div>
<div class="bg_arrow"></div>
<div class="left" id="getCode<?php echo $temp['coupon_id']; ?>">
<input type="button" onclick="showCouponCode('getCode<?php echo $temp['coupon_id']; ?>','<?php echo $temp['coupon_code']; ?>','<?php echo $temp['store_id']; ?>')" value="" class="get_code1" />
</div>
</div>
<div class="spec_10"></div>
<div>
<?php echo $temp['coupon_description']; ?>
</div>
<div class="spec_10"></div>
<div class="left">
<img src="/public/images/cal_icon.png" alt="" />
</div>
<div class="left mlr10_20 txt3">
Added on:
<?php echo date("jS F", strtotime($temp['coupon_startdate'])); ?>
</div>
<div class="left">
<img src="/public/images/cal_icon.png" alt="" />
</div>
<div class="left mlr10_20 txt3">
Expires on:
<?php echo date("jS F", strtotime($temp['coupon_expiredate'])); ?>
</div>
</div>
</div>
<?php }}}
				if(isset($allRelatedOccasionOffers) && !empty($allRelatedOccasionOffers)){ 
				foreach($allRelatedOccasionOffers as $temp){?>
<div class="p15 bdr_b">
<div class="left w110">
<a href="/top-coupons/<?php echo $temp['store_url'].'/'.$temp['coupon_url'];?>"><img src="<?php echo $temp['store_image']; ?>" alt="" class="bdr_logo logo_shadow" /> </a>
<?php if($temp['coupon_bank']!=0){ ?>
<span class="plus">+</span><br /> <img src="/public/images/logo_<?php echo $temp['coupon_bank']; ?>.png" alt="" hspace="16" />
<?php } ?>
</div>
<div class="ml120">
<a href="/top-coupons/<?php echo $temp['store_url'].'/'.$temp['coupon_url'];?>" class="offer_lnk"><?php echo $temp['coupon_name']; ?> </a><br />
<?php echo $temp['coupon_description']; ?>
<div class="spec_10"></div>
<div class="left">
<img src="/public/images/cal_icon.png" alt="" />
</div>
<div class="left mlr10_20 txt3">
Added on:
<?php echo date("jS F", strtotime($temp['coupon_startdate'])); ?>
</div>
<div class="left">
<img src="/public/images/cal_icon.png" alt="" />
</div>
<div class="left mlr10_20 txt3">
Expires on:
<?php echo date("jS F", strtotime($temp['coupon_expiredate'])); ?>
</div>
</div>
</div>
<?php }} ?>
<div class="spec_2"></div>
</div>
<div class="spec_15"></div>
</div>
<div class="left w320">
<div class="p10 bdr_logo">
<a href="<?php echo $bannersArray[0]['banner_link']; ?>" target="_blank" rel="nofollow"><img src="<?php echo $bannersArray[0]['banner_image']; ?>" height="250" width="300" alt="<?php echo $bannersArray[0]['banner_alt']; ?>" />
</a>
</div>
<div class="spec_15"></div>
<?php $this->load->view('common/fb_widget'); ?>
<div class="spec_15"></div>
<?php $this->load->view('common/categoryPanel'); ?>
<div class="spec_15"></div>
</div>
<div class="spec_15"></div>
<?php $this->load->view('common/search'); ?>
<div class="spec_15"></div>
<?php $this->load->view('common/banners'); ?>
<div class="spec_15"></div>
</div>
</div>
<?php $this->load->view('common/footer')?>
<script>!function(e,a,f){var c,b=e.getElementsByTagName(a)[0];if(!e.getElementById(f)){c=e.createElement(a);c.id=f;c.src="//platform.twitter.com/widgets.js";b.parentNode.insertBefore(c,b)}}(document,"script","twitter-wjs");</script>
<script type="text/javascript">(function(){var a=document.createElement("script");a.type="text/javascript";a.async=true;a.src="https://apis.google.com/js/plusone.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)})();</script>